Electronic and Programming Part
Electronic
In this three to four days i worked with my PCB electronic board to redesign and make a workable for my final project. So i have done some research from online google and Mr. Ricko helped me on this to go through.
This is my rough sketch made by me and Mr.Ricko.
![](./board sketch.jpg)
With this design i have implement in Eagle for my final board designing and i started to mill and done the soldering for my final board.
Milling
![](./Board milling.jpg)
Done Soldering
Programming With ESP32-CAM
To do programming, Firstly i have tested my esp32cam board with web-server and LED blinking to check my board is working good. So I connected esp32-cam with the FTDI cable in my laptop.
Connection Pins
5v - 5v
GND - GND
UOR - TX
UOT - RX
GND - 100 (Connect in ESP32-cam for uploading code)
![](./ESP with LED blinking.jpg)
Code i have used from Example -- ESP32 -- Camera web-server Code Link
Setup for ESP32-CAM
Before uploading the code to ESP32-CAM module,i have installed the ESP32-CAM board form board manager:
https://dl.espressif.com/dl/package_esp32_index.json,
http://arduino.esp8266.com/stable/package_esp8266com_index.json
![](./Prefrence.jpg)
Board Settings
![](./settings.jpg)
After settings are done, Upload your code. After uploading,press ESP32 CAM on-board RESET button to put the board in the flashing mode
![](./Esp code.jpg)
After uploading the code disconnect the GPIO-0 pin from GND pin.
Open Serial Monitor -- Set the Baud rate to 115200 -- Press the ESP32 CAM on-board RESET button
![](./Serial Monitor.jpg)
Now you can copy the IP address and paste it to any browser to start the video streaming and capture Images.
![](./Cam IP.jpg)
Programming With 12V Solenoid Lock
In my final project, solenoid lock is an out put device and this was done on output week assignment. So here i have given the link to access my work flow.
Setup Telegram (Telegram Bot ID)
![](./Telegram 1.jpg)
![](./Tekegram 2.jpg)
![](./Tekegram 3.jpg)
![](./telegram 000.jpg)
![](./Telegram 4.jpg)
Get the User Id in the Telegram App
![](./Telegram 5.jpg)
![](./telegram 6.jpg)
Video
Program with ESP32-CAM
In this, Now i am going to use my PCB board to connect all the input and output device to do programming on arduino IDE.
For the programming I have used FTDI cable and for this project i have used the ArdunioJson and Universal Telegram Bot library.
To download library;
Before uploading the code, you have to enter the following details.
![](../assignments/Week9/IP.jpg)
Connection and Wireline
![](./Board connection.jpg)
![](./wire line.jpg)
Final Hero shot
![](./Hero shot of door.jpg)
![](./Hero sho door.jpg)